import instance from '../request/index.js';
/* 文章列表  */
// 首页列表
export const getIndexList = (from, to) => instance.get('/lessons', { from, to });



/* 内容详情 */
// 文章内容
export const getContent = (article_id) => instance.get(`/lessons/${article_id}`);




// 评论列表
export const getCommentList = (articleId) => instance.get(`/lessons/${articleId}/comments`);


// 文章状态
export const getActivityStats = (articleId) => instance.get(`/lessons/${articleId}/activity_stats`);



/* 探索列表 */
export const getExploreList = () => instance.get('/today_recommends');